package main
import "hash/adler32"
import "io"
import "encoding"
import (
	"fmt"
	"encoding/hex"
	"hash/fnv"
)
//import "hash/fnv"


func main1x(){
	datastr:="12345456689999asdaasdadasasdsasd"

	c := adler32.New()
	io.WriteString(c, datastr)
	state, err := c.(encoding.BinaryMarshaler).MarshalBinary()
	if err!=nil{
		return
	}
	fmt.Println(	hex.EncodeToString(state))


}

func main2x(){
	datastr:="12345456689999asdaasdadasasdsasdasdasdasdsadasdaksdklalkdjkskjakjlasd"

	h := adler32.New()
	h.Write([]byte(datastr))
	bs:=h.Sum(nil)
	fmt.Println(fmt.Sprintf("%x",bs))


}

func main(){
	datastr:="12345456689999asdaasdadasasdsasdasdasdasdsadasdaksdklalkdjkskjakjlasd"

	h := fnv.New32()
	h.Write([]byte(datastr))
	bs:=h.Sum(nil)
	fmt.Println(fmt.Sprintf("%x",bs))
}